package com.cicc.beergamevirtualsimulationsystem.model.recordDetail.dto;

import com.cicc.beergamevirtualsimulationsystem.common.constant.RecordConstant;
import com.cicc.beergamevirtualsimulationsystem.common.constant.RecordDetailConstant;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class RecordDetailUpdateReq {

    private static final long serialVersionUID = 1L;
    /**
     * 记录明细id
     */
    @NotBlank(message = RecordDetailConstant.DETAIL_ID_NULL)
    private String id;
    /**
     * 本期发货量
     */
    @NotNull
    @Min(value = RecordConstant.NUM_MIN, message = RecordConstant.NUM_ERROR)
    private Integer deliverQuantity;
}
